package chapter_13


class Outer {

  class Inner {
    private def f() { println("f") }

    class InnerMost {
      f() // OK
    }
  }
//  (new Inner).f() // 错误：f不可访问
}


package p {
  class Super {
    protected def f() {
      println("f")
    }
  }

  class Sub extends Super {
      f()
  }
  class Other {
//    (new Super).f()   // 错误：f不可访问
  }
}
